﻿CREATE PROCEDURE [acms].[Topic_GetAllByPostId]
	@PostId int
AS
	SELECT a.*
	FROM Topic_View a
		inner join PostTopic_View b on a.Id = b.TopicId
	WHERE b.PostId = @PostId
	ORDER BY Sequence
RETURN 0;